package scanning;

public class NumberToken extends Token {

	private int radix = 10;
	private boolean exactPrefix = false;
	private boolean inexactPrefix = false;
	private String realText = "";
	private String imagText = "";

	public NumberToken() {
		super(TokenType.Number, "");
	}

	public void setText(String text) {
		super.setText(text);
	}

	public int getRadix() {
		return radix;
	}

	public void setRadix(int radix) {
		this.radix = radix;
	}

	public boolean hasExactPrefix() {
		return exactPrefix;
	}

	public void setExactPrefix() {
		this.exactPrefix = true;
	}

	public boolean hasInexactPrefix() {
		return inexactPrefix;
	}

	public void setInexactPrefix() {
		this.inexactPrefix = true;
	}

	public String getRealText() {
		return realText;
	}

	public void setRealText(String realText) {
		this.realText = realText;
	}

	public String getImagText() {
		return imagText;
	}

	public void setImagText(String imagText) {
		this.imagText = imagText;
	}

}
